package com.phamlet.casualtopics;

public class ExceptionOutput extends flex.messaging.MessageException{
	private static final long serialVersionUID = 1L;

	// private ExceptionReason reason;
	private String type;
	private String text;

	/**
	 * Default C'tor
	 */
	public ExceptionOutput() {

		super();
	}

	/**
	 * Copy C'tor
	 * 
	 * @param e
	 *            the Exception
	 */
	public ExceptionOutput(Exception  e) {
		super( e );
		this.type = e.getClass().getSimpleName();
		this.text = e.getMessage();
	}

	// /**
	// * Copy C'tor
	// *
	// * @param e
	// */
	// public ExceptionOutput(AppException e) {
	//
	// this.reason = e.getReason();
	// this.type = e.getClass().getSimpleName();
	// }
	//
	// /**
	// * @return the reason
	// */
	// public ExceptionReason getReason() {
	//
	// return reason;
	// }
	//
	// /**
	// * @param reason
	// * the reason to set
	// */
	// public void setReason(ExceptionReason reason) {
	//
	// this.reason = reason;
	// }

	/**
	 * @return the type
	 */
	public String getType() {

		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {

		this.type = type;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param text
	 *            the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	
}
